package com.frxuexi.mdm2206.demo

import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController

@Composable
fun MyPage1(navHostController: NavHostController){
    Column {
        Button(onClick = {
//            navHostController.navigate("page2/aa")
            navHostController.navigate("main")
        }) {
            Text(text = "跳转")
        }
    }
}

@Composable
fun MyPage2(name:String){
    Text(text = "页面2:$name")
}